package edu.ustb.struts2.action;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

@ParentPackage(value="system")
@Namespace(value="/")
@Action(value="test")
@Results({
	@Result(name="del",location="success.jsp",type="dispatcher"),
	@Result(name="add",location="add.jsp",type="dispatcher")
})
public class TestAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	public String del() throws Exception {
		return "del";
	}
	
	public String add(){
		return "add";
	}
	
	
}
